﻿Ext.define('Sofia.view.tab.Run',
{
    extend: 'Ext.panel.Panel',
    alias: 'widget.runTab',

    title: 'Run',
    id: 'runPanel',
    layout: 
    {
        type: 'vbox',
        align: 'stretch',
        pack: 'start'
    },

    items:
    [
        {
            xtype: 'panel',
            title: '1. General',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    defaultType: 'radiofield',
                    fieldLabel: 'Dimensionality',
                    items:
                    [
                        {
                            boxLabel: '1',
                            id: '1Radio',
                            name: 'dimension',
                            inputValue: 'dim1'
                        },
                        {
                            boxLabel: '2',
                            id: '2Radio',
                            name: 'dimension',
                            inputValue: 'dim2'
                                                      
                        },
                        {
                            boxLabel: '3',
                            id: '3Radio',
                            name: 'dimension',
                            inputValue: 'dim3'
                        }
                    ]
                }
            ]

        },
        {
            xtype: 'panel',
            title: '2. Algorithm',
            id: 'algorithmMenu',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    
                    defaultType: 'radiofield',
                    items:
                    [
                        {
                            boxLabel: 'Molecular Dynamics',
                            name: 'algorithm',
                            inputValue: 'md',
                            id: 'MDRadio'

                        },
                        {
                            boxLabel: 'Monte Carlo',
                            name: 'algorithm',
                            inputValue: 'mc',
                            id: 'MCRadio'
                        },
                        {
                            boxLabel: 'Minimization',
                            name: 'algorithm',
                            inputValue: 'min',
                            id: 'MinRadio'
                        }
                    ]
                }
            ]
        },
        {
            xtype: 'panel',
            title: '3A. Molecular Dynamics',
            id: 'MDMenu',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    
                    defaultType: 'radiofield',
                    items:
                    [
                        {
                            boxLabel: 'Thermalization',
                            name: 'thermA',
                            inputValue: 'therm1',
                            id: 'thermRadio1'

                        }
                    ]
                }
            ]

        },
        {
            xtype: 'panel',
            title: '3B. Monte Carlo',
            id: 'MCMenu',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    
                    defaultType: 'radiofield',
                    items:
                    [
                        {
                            boxLabel: 'Thermalization',
                            name: 'therm',
                            inputValue: 'therm1',
                            id: 'thermRadio2'

                        }
                    ]
                }
            ]
        },
        {
            xtype: 'panel',
            title: '3C. Minimization',
            id: 'minMenu',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    
                    defaultType: 'radiofield',
                    items:
                    [
                        {
                            boxLabel: 'Ready to Run',
                            name: 'runRad',
                            inputValue: 'runReady'

                        }
                    ]
                }
            ]
        },
        {
            xtype: 'panel',
            title: '4. Thermalization',
            id: 'thermMenu',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'fieldcontainer',
                    
                    defaultType: 'radiofield',
                    items:
                    [
                        {
                            boxLabel: 'Ready to Run',
                            name: 'runRad',
                            inputValue: 'runReady',
                            id: 'runRadio2'

                        }
                    ]
                }
            ]
        },
        {
            xtype: 'panel',
            title: '5. Run!',
            id: 'run5',
            style: 'display:none',
            items:
            [
                {
                    xtype: 'button',
                    text: 'Run!',
                    id: 'runButton'
                }
            ]
        }
    ]
});